package zjh.msg.entity.vo;

import zjh.msg.entity.Msg;

import java.time.LocalDateTime;
import java.util.List;

public class MsgVo extends Msg {

    private List<Msg> replyList;

    public MsgVo() {
    }

    public MsgVo(List<Msg> replyList) {
        this.replyList = replyList;
    }

    public MsgVo(String id, String nickname, String qq, String email, String text, String replyId, LocalDateTime createTime, List<Msg> replyList) {
        super(id, nickname, qq, email, text, replyId, createTime);
        this.replyList = replyList;
    }

    public List<Msg> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<Msg> replyList) {
        this.replyList = replyList;
    }

    @Override
    public String toString() {
        return "MsgVo{" +
                "replyList=" + replyList +
                '}';
    }
}
